﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;

/// <summary>
/// Summary description for BuilderHinhAnh
/// </summary>
public class BuilderHinhAnh
{
    PictureDA p = new PictureDA();
    public string showImage(string msp) {
        StringBuilder builder = new StringBuilder();
        List<HinhAnh> l = p.GetData(msp);
       
            foreach (HinhAnh h in l)
            {
                builder.Append("<a href='"+h.Url.Remove(0,2)+"' title='"+h.Masanpham+"'></a>");
            }
        
        return builder.ToString();
    }

}